package com.breaktian.share.action;

import android.content.Context;

import com.breaktian.share.Share;
import com.breaktian.share.ShareChannel;
import com.breaktian.share.ShareEntity;

public interface ShareAction {
    boolean isAppInstalled();
    void share(ShareEntity entry, ShareChannel channel);

    class Factory{
        public static ShareAction create(Context context, ShareChannel channel){
            switch (channel){
                case QQ:
                case QZONE:
                    return new QQAction(context);
                case WEIBO:
                    return new WeiboAction(context);
                case SESSION:
                case TIMELINE:
                    return new WeixinAction(context);
                default:
                    return null;

            }
        }
    }

}
